From: Keir Fraser Date: Thu, 4 Jun 2009 09:57:39 +0000 (+0100) Subject: xm: Remove redundant os.waitpid() call from do_console() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13798 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=57d9503643d99ef7a1b167038e39b4ab4bd477fd;p=xen.git xm: Remove redundant os.waitpid() call from do_console() Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index a9806099f7..a36371aab5 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -1407,7 +1407,6 @@ def do_console(domain_name): # the child process used to do this has detached print("Domain has already finished"); break - (p, rv) = os.waitpid(cpid, os.WNOHANG) if os.WIFEXITED(rv): if os.WEXITSTATUS(rv) != 0: sys.exit(os.WEXITSTATUS(rv))